define([
    'angular',
    ],
    function (angular) {
	    'use strict';

	    var substanceModule;
        try {
        	substanceModule = angular.module('gbits.websns.substance');
        } catch(err) {
        	substanceModule = null;
        };

        if (substanceModule == null) {
        	substanceModule = angular.module('gbits.websns.substance', ['ui.router', 'ngFileUpload'])
        	.constant('gbits.websns.substance.config', {
    	    	basePath : appBasePath + "/scripts",
    	    });
        }

    	return substanceModule;
	}
);